<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp" %>
<html>
<head>
    <title>问题反馈管理</title>
    <meta name="decorator" content="default"/>
    <style>
        .controlsBox{
            width: 80%;
            padding-left: 20px;
        }
        .controlsBox p{
            width:100%;
            line-height: 20px;
        }
        .pic-box img{
            width: 14%;
            margin: 0 1% 1% 0;
        }
        .form-horizontal .control-group{
            border-bottom: 1px dotted #aaa;
            padding: 12px 0px;
        }
    </style>
</head>
<body>
<ul class="nav nav-tabs">
    <li><a href="${ctx}/business/feedback?category=0">教师问题反馈</a></li>
    <li class="active"><a href="${ctx}/business/feedback/deal?id=${feedback.id}">教师反馈处理</a></li>
</ul>
<br/>
<div  class="form-horizontal">
  <c:forEach items="${list}" var="deal">
    <div class="control-group">
        <label class="control-label">
            <img style="width: 70px" src="${deal.portrait}">
            <div>${deal.name}</div>
            <time>${deal.time}</time>
        </label>
        <div class="controls">
           <div class="controlsBox">
               <p>${deal.content}</p>
               <div class="pic-box">
                   <c:forEach items="${deal.list}" var="media">
                       <c:if test="${media.type=='0'}">
                            <img src='${media.url}?x-oss-process=style/head'/>
                       </c:if>
                   </c:forEach>
               </div>
               </div>
        </div>
    </div>
  </c:forEach>
</div>
<tags:message content="${message}"/>
<form:form id="inputForm" modelAttribute="feedback" action="${ctx}/business/feedback/saveDeal" method="post" class="form-horizontal">
    <div class="control-group" style="width: 90%;margin: auto;">
        <form:textarea rows="3" path="result" htmlEscape="false" maxlength="50" class="span4 required"/>
        <tags:ckeditor replace="result" uploadPath="/upload/file"/>
    </div>
    <form:hidden path="id"/>
    <div class="form-actions">
        <input id="btnSubmit" class="btn btn-primary" type="submit" value="提 交"/>&nbsp;
        <input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
    </div>
</form:form>
</body>
</html>